Skip to main content

Tracking Pages

Nudge tracks views on a per-screen basis. To send the tracked views to Nudge's Dashboard, follow these steps:

info

If you want to listen to events triggered by the Nudge SDK, be sure to implement the NudgeGCallback interface.

Connecting Your App

Add the Intent Filter

To enable Screenshot Mode, update your AndroidManifest.xml with the following snippet:

<activity
android:name="com.nudgenow.nudgecorev2.core.NudgePairActivity"
android:exported="true"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="nudge-{APP_SCHEME_ID}"
android:host="nudgenow.com"
android:pathPattern="/.*/.*" />
</intent-filter>
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="{YOUR_APP_NAME}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
note
  1. Replace {YOUR_APP_NAME} with your package name. Example : com.example.appname
  2. Replace {APP_SCHEME_ID} with the scheme ID you’ll find in the Nudge Dashboard (see below).

Capturing Screens

  1. Open the Nudge Dashboard and go to the Pages section in the sidebar.
Nudge Pages
  1. Click + New Page . A popup window will appear.

  2. In the popup, you will see your App Scheme Id. Add this {APP_SCHEME_ID} in your AndroidManifest.xml file.

Nudge Add Pages
  1. Scan the QR code shown in the popup using a mobile device that already has your app installed (with the updated manifest).

  2. Open the generated URL, then tap “Launch App” to start your app in Screenshot Mode.

Nudge Add Pages
  1. In your app, you’ll see the Nudge logo at the top-left corner. Tap it to open a popup, then:
  • Enter a name for the screen you want to capture.
  • Tap “Save.” This sends all visible views to the Nudge Dashboard.
App ViewApp View
  1. Go back to the Nudge Dashboard in the Pages section and refresh. You’ll see your new screen and its tracked views.
Nudge Add Pages

That’s it! You can repeat this process to capture any screen in your app and manage them in the Nudge Dashboard.